package slxy.jiangtao.dts.core.common.hibernate.qbc;

import org.hibernate.criterion.Criterion;

import java.util.ArrayList;

public class CriterionList extends ArrayList<Object> {

  private static final long serialVersionUID = 1L;

  public final Criterion getParas(final int index) {
    return (Criterion) super.get(index);
  }

  public final void addPara(final int index, final Criterion p) {
    super.add(index, p);
  }

  public final void addPara(final Criterion p) {
    super.add(p);
  }

  public final int indexofPara(final Criterion p) {
    return super.indexOf(p);
  }

  public final void removePara(final int index) {
    super.remove(index);
  }
}
